package com.example.passport.entity;

import lombok.*;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User {
    public static final int STATUS_ENABLE = 1;  // 可用
    public static final int STATUS_DISABLE = 2; // 停用
    public static final int STATUS_DELETE = 9;  // 删除
    public static final int ADMIN_ID=1;//管理员ID
    private Long id;
    private String avatar;
    private Long tenantId;
    private String name;
    private String username;
    private String passwordHash;
    private String passwordSalt;
    private String email;
    private String mobile;
    private String apiToken;
    private int status;
    private Date createdAt;
    private Date updatedAt;
    private String superiorName;
    private Long superiorId;
    private String eventId;
    private Long depId;
    private Long roleId;
    private String toUser;
}